﻿
namespace AB.ServiceDirectory.Dao
{
    using log4net;

    /// <summary>
    /// Log class
    /// </summary>
    public sealed class Log
    {
        /// <summary>
        /// Prevents a default instance of the <see cref="Log"/> class from being created.
        /// </summary>
        private Log(){}

        /// <summary>
        /// Gets the log.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="type">The type.</param>
        /// <returns></returns>
        public static ILog GetLog<T>(T type)
        {
            return LogManager.GetLogger(type.GetType());
        }
    }
}
